package com.ffyc.ssm.service;

import com.ffyc.ssm.dao.UserDao;
import com.ffyc.ssm.modle.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserDao userDao;

    public User selectPassword(String password, Integer id) {
        return userDao.selectPassword(password,id);
    }

    public void saveNewPassword(String password, Integer id) {
        userDao.saveNewPassword(password, id);
    }

    public void saveUpdateInfo(User user) {
        userDao.saveUpdateInfo(user);
    }
}
